package org.jctc.els.modules.biz.mapper.message;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.jctc.els.modules.biz.entity.message.MessageUser;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 消息与人员关联表 Mapper 接口
 * </p>
 *
 * @author lyh
 * @since 2021-02-26
 */
@Mapper
public interface MessageUserMapper extends BaseMapper<MessageUser> {

    int allRead(@Param("userId") Long userId);

    int deleteMessage(@Param("id") Long id, @Param("userId") Long userId);
}
